package com.ztgf.commodity.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ztgf.commodity.models.dto.ShieldPartsDTO;
import com.ztgf.commodity.models.vo.CommodityCategoryShieldBrandVO;
import com.ztgf.commodity.models.vo.CommodityCategoryShieldPartsVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 盾构部位表映射
 *
 * @author chenyu.wang
 * @Date 2020-06-02 15:11:05
 */
@Mapper
public interface ShieldPartsMapper extends BaseMapper<ShieldPartsDTO> {

    /**
     * description: 根据类目id查询关联的盾构品牌,类目id可以为空
     * param: [categoryId]
     * author: chenyu.wang
     * date: 2020-08-03
     * return: java.util.List<com.ztgf.commodity.models.vo.CommodityCategoryShieldBrandVO>
     */
    List<CommodityCategoryShieldBrandVO> queryShieldBrand(@Param("categoryId") Long categoryId);

    /**
     * description: 根据类目id查询关联的盾构部位
     * param: [categoryId]
     * author: chenyu.wang
     * date: 2020-08-03
     * return: java.util.List<com.ztgf.commodity.models.vo.CommodityCategoryShieldPartsVO>
     */
    List<CommodityCategoryShieldPartsVO> queryShieldPart(@Param("categoryId") Long categoryId);

    /**
     * description: 查询全部盾构品牌
     * param: [categoryId]
     * author: chenyu.wang
     * date: 2020-08-03
     * return: java.util.List<com.ztgf.commodity.models.vo.CommodityCategoryShieldPartsVO>
     */
    List<CommodityCategoryShieldBrandVO> queryAllBrand();

    /**
     * description: 查询全部盾构部位
     * param: [categoryId]
     * author: chenyu.wang
     * date: 2020-08-03
     * return: java.util.List<com.ztgf.commodity.models.vo.CommodityCategoryShieldPartsVO>
     */
    List<CommodityCategoryShieldPartsVO> queryAllParts();
}
